/********************************************************************
	created:	2012/02/26   23:15
	filename: 	hy_select_reactor.h
	author:		supercaco@sina.com
	purpose:	select
*********************************************************************/
#ifndef _HY_SELECT_REACTOR_H_
#define _HY_SELECT_REACTOR_H_

class hy_select_reactor : public hy_reactor_base
{
public:
	hy_select_reactor(){}
	~hy_select_reactor(){}

	virtual hy_err_t	init(){	return hy_right; }
	virtual void		unit(){}


	virtual void		run() = 0;
	virtual void		stop()= 0;

	virtual hy_err_t checkin(hy_handle_base* hb )	{ return hy_error; }
	virtual hy_err_t checkout(hy_handle_base* hb)	{ return hy_error; }

	virtual hy_err_t conn_notfiy(hy_handle_base* hb) { return hy_error; }
	virtual hy_err_t send_notify(hy_handle_base* hb) { return hy_error; }
	virtual hy_err_t recv_notify(hy_handle_base* hb) { return hy_error; }
};

#endif  //_HY_SELECT_REACTOR_H_
